package s2elinshu;

public class J15Extends {

	public static void main(String[] args) {

	} // main
} // J15Extends

class J15SungJukV1 {
	private String name;
	private int kor;
	private int eng;
	private int mat;


		
public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getKor() {
		return kor;
	}

	public void setKor(int kor) {
		this.kor = kor;
	}

	public int getEng() {
		return eng;
	}

	public void setEng(int eng) {
		this.eng = eng;
	}

	public int getMat() {
		return mat;
	}

	public void setMat(int mat) {
		this.mat = mat;
	}

public int getTot() {
	return(kor+eng+mat);
}


} // J15SungJukV1, 상속을 사용하지 않은 경우

class J15SungJukV2 extends J15SungJukV1 {
	private int sci;
	private int art;
	
	
@Override
public int getTot() {
	return super.getTot()+sci+art;
}


} // J15SungJukV1b, 상속을 사용하는 경우

class search4Super extends Object{
	

}  // search4Super class 닫음
